package com.zhang.admin.bean;

/**
 * @title: 用户表
 * @author: zhangyf
 * @date: 2023/3/15 13:17
 **/
public class User {
    private Long id; // 主键id
    private String username; // 用户名
    private String password; // 密码
    private String roleName; // 角色名，这个字段user表中没有

    public User() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}
